/*
 * MouseBaseEvent.cpp
 *
 *  Created on: 2013-9-1
 *  Author: xnan
 */

#include "MouseBaseEvent.h"

NS_XNL_BEGIN

MouseBaseEvent::MouseBaseEvent( IEventDispatcher * p_target, XNint p_eventType, XNint p_x, XNint p_y, XNint p_key )
: Event( p_target, p_eventType )
, m_x( p_x )
, m_y( p_y )
, m_key( p_key )
{
}

MouseBaseEvent::~MouseBaseEvent()
{
}

XNint MouseBaseEvent::getMouseX()
{
    return m_x;
}

XNint MouseBaseEvent::getMouseY()
{
    return m_y;
}

XNint MouseBaseEvent::getKey()
{
    return m_key;
}

NS_XNL_END
